﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SPSimpleDeveloper.Common.SharePointArtifacts
{
    /// <summary>
    /// Represents SharePoint ContentType
    /// </summary>
    public class SharePointContentType : SharePointObject
    {
        public Guid Id { get; set; }
        public string Name { get; set; }
        public string Group { get; set; }
        public string Description { get; set; }
        public bool DisplaceOnUpgrade { get; set; }
        public int Version { get; set; }

        /// <summary>
        /// Columns defined in file with content type 
        /// </summary>
        public IEnumerable<SharePointColumn> Columns { get; set; }

        /// <summary>
        /// Columns referenced in content type
        /// </summary>
        public IEnumerable<SharePointColumnReference> ReferencedColumns { get; set; }

        #region SharePointObject members

        public override bool IsValid()
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
